import request from '@/utils/request'

// 查询月收益列表
export function listMonth(query) {
  return request({
    url: '/system/month/list',
    method: 'get',
    params: query
  })
}

// 查询月收益详细
export function getMonth(incomeId) {
  return request({
    url: '/system/month/' + incomeId,
    method: 'get'
  })
}

// 新增月收益
export function addMonth(data) {
  return request({
    url: '/system/month',
    method: 'post',
    data: data
  })
}

// 修改月收益
export function updateMonth(data) {
  return request({
    url: '/system/month',
    method: 'put',
    data: data
  })
}

// 删除月收益
export function delMonth(incomeId) {
  return request({
    url: '/system/month/' + incomeId,
    method: 'delete'
  })
}
